home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsccolor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  63 lines

  1. /* Copyright (C) 1993, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsccolor.h,v 1.2 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Client color structure definition */
  21.  
  22. #ifndef gsccolor_INCLUDED
  23. #  define gsccolor_INCLUDED
  24.  
  25. #include "gsstype.h"        /* for extern_st */
  26.  
  27. /* Pattern instance, usable in color. */
  28. #ifndef gs_pattern_instance_DEFINED
  29. #  define gs_pattern_instance_DEFINED
  30. typedef struct gs_pattern_instance_s gs_pattern_instance_t;
  31. #endif
  32.  
  33. /*
  34.  * Define the maximum number of components in a client color.
  35.  * This must be at least 4, and should be at least 6 to accommodate
  36.  * hexachrome DeviceN color spaces.
  37.  */
  38. #define GS_CLIENT_COLOR_MAX_COMPONENTS 6
  39.  
  40. /* Paint (non-Pattern) colors */
  41. typedef struct gs_paint_color_s {
  42.     float values[GS_CLIENT_COLOR_MAX_COMPONENTS];
  43. } gs_paint_color;
  44.  
  45. /* General colors */
  46. #ifndef gs_client_color_DEFINED
  47. #  define gs_client_color_DEFINED
  48. typedef struct gs_client_color_s gs_client_color;
  49.  
  50. #endif
  51. struct gs_client_color_s {
  52.     gs_paint_color paint;    /* also color for uncolored pattern */
  53.     gs_pattern_instance_t *pattern;
  54. };
  55.  
  56. extern_st(st_client_color);
  57. #define public_st_client_color() /* in gscolor.c */\
  58.   gs_public_st_ptrs1(st_client_color, gs_client_color, "gs_client_color",\
  59.     client_color_enum_ptrs, client_color_reloc_ptrs, pattern)
  60. #define st_client_color_max_ptrs 1
  61.  
  62. #endif /* gsccolor_INCLUDED */
  63.